import { h } from 'vue';
import { NTag } from 'naive-ui';
export const columns = [
    {
        title: '流程名称',
        key: 'flowModelName'
    },
    {
        title: '流程分组',
        key: 'groupName'
    },
    {
        title: '创建时间',
        key: 'createdTime'
    },
    {
        //流程状态（1:进行中,2:已通过,3:已驳回）
        title: '批复状态',
        key: 'flowStatus',
        render(row) {
            return h(
              NTag,
              {
                type: row.flowStatus === 1 ? 'info' : (row.flowStatus === 2 ? 'success' : 'error'),
              },
              {
                default: () => (row.flowStatus === 1 ? '进行中' : (row.flowStatus === 2 ? '已通过' : '已驳回')),
              },
            );
          },
    },
];